<aside class="main-sidebar sidebar-dark-primary elevation-4">
    <a href="{:url('admin_controller/index')}" class="brand-link">
        <img src="__STATIC__/img/logo.jpg" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
        <span class="brand-text font-weight-light">约健后台管理</span>
    </a>
    <div class="sidebar">
        <div class="user-panel mt-3 pb-3 mb-3 d-flex">
            <div class="info">
                <a href="#" class="d-block"><?php use think\Session; $result=db('clubs')->find(Session::get('adminid')); echo $result['adminname']; ?></a>
            </div>
        </div>
        <nav class="mt-2">
            <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">

                <li class="nav-item">
                    <a href="{:url('clubs_controller/index')}" class="nav-link <?php if(request()->controller()=='ClubsController') echo 'active'; ?>">
                        <i class="nav-icon fa fa-gamepad"></i>
                        <p>俱乐部管理</p>
                    </a>
                </li>

                <li class="nav-item">
                    <a href="{:url('users_controller/index')}" class="nav-link <?php if(request()->controller()=='UsersController') echo 'active'; ?>">
                        <i class="nav-icon fa fa-user"></i>
                        <p>用户管理</p>
                    </a>
                </li>

                <li class="nav-item has-treeview <?php if(request()->controller()=='ActivitiesController' || request()->controller()=='MasterController' || request()->controller()=='MatchController') echo 'menu-open'; ?>">
                    <a href="#" class="nav-link">
                        <i class="nav-icon fa fa-first-order"></i>
                        <p>
                            首页推荐设置
                            <i class="right fa fa-angle-left"></i>
                        </p>
                    </a>
                    <ul class="nav nav-treeview">
                        <li class="nav-item">
                            <a href="{:url('activities_controller/index')}" class="nav-link <?php if(request()->controller()=='ActivitiesController') echo 'active'; ?>">
                                <i class="fa fa-hand-o-right nav-icon"></i>
                                <p>精彩活动管理</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="{:url('master_controller/index')}" class="nav-link <?php if(request()->controller()=='MasterController') echo 'active'; ?>">
                                <i class="fa fa-cc-mastercard nav-icon"></i>
                                <p>权威大师管理</p>
                            </a>
                        </li>
                        <li class="nav-item">
                            <a href="{:url('match_controller/index')}" class="nav-link <?php if(request()->controller()=='MatchController') echo 'active'; ?>">
                                <i class="fa fa-mars-double nav-icon"></i>
                                <p>最近比赛管理</p>
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="nav-item">
                    <a href="{:url('exercises_controller/index')}" class="nav-link <?php if(request()->controller()=='ExercisesController') echo 'active'; ?>">
                        <i class="nav-icon fa fa-hand-paper-o"></i>
                        <p>训练信息管理</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a href="{:url('order_controller/index')}" class="nav-link <?php if(request()->controller()=='OrderController') echo 'active'; ?>">
                        <i class="nav-icon fa fa-bookmark-o"></i>
                        <p>训练订单管理</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a href="{:url('match_enroll_controller/index')}" class="nav-link <?php if(request()->controller()=='MatchEnrollController') echo 'active'; ?>">
                        <i class="nav-icon fa fa-bookmark-o"></i>
                        <p>最近比赛报名管理</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a href="{:url('shaitu_controller/index')}" class="nav-link <?php if(request()->controller()=='ShaituController') echo 'active'; ?>">
                        <i class="nav-icon fa fa-picture-o"></i>
                        <p>晒图管理</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a href="{:url('enroll_controller/index')}" class="nav-link <?php if(request()->controller()=='EnrollController') echo 'active'; ?>">
                        <i class="nav-icon fa fa-book"></i>
                        <p>精彩活动报名管理</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a href="{:url('sowingmap_controller/index')}" class="nav-link <?php if(request()->controller()=='SowingmapController') echo 'active'; ?>">
                        <i class="nav-icon fa fa-map"></i>
                        <p>轮播图管理</p>
                    </a>
                </li>
                <li class="nav-item">
                    <a href="{:url('admin_controller/editpass')}" class="nav-link <?php if(request()->controller()=='AdminController'  && request()->action()=='editpass') echo 'active'; ?>">
                        <i class="nav-icon fa fa-key"></i>
                        <p>修改密码</p>
                    </a>
                </li>

            </ul>
        </nav>
    </div>
</aside>